<?php
// 系统菜单
return [
    [
        'name' => '数据面板', // 菜单名称
        'url' => '/dashboard',  // 菜单url
        'type' => 1,   // 菜单url类型0:目录，1页面，2按钮/api,3:iframe
        'icon' => 'Histogram', // 图标
        'status' => 1,    // 状态1:显示，0:隐藏
        'sort' => 0,    // 排序
        'code' => 'banner', // 权限标识
        'children' => [],  // 子菜单
    ],
    [
        'name' => '用户',
        'url' => '/user/privacy/index',
        'type' => 0,
        'icon' => 'UserFilled',
        'code' => 'user',
        'sort' => 10,
        'children' => [
            [
                'name' => '资料审核',
                'url' => '/user/privacy/index',
                'type' => 1,
                'sort' => 10, 
                'icon' => 'Finished',
                'code' => '/admin/user.user/privacy',
                'children' => [
                    [
                        'name' => '处理',
                        'type' => 2,
                        'code' => '/admin/user.user/examine',
                    ],
                ],
            ],
            [
                'name' => '用户列表',
                'url' => '/user/list/index',
                'type' => 1,
                'sort' => 20, 
                'icon' => 'User',
                'code' => '/admin/user.user/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/user.user/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/user.user/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/user.user/delete',
                    ],
                ],
            ],
            [
                'name' => '用户购物车',
                'url' => '/user/cart/index',
                'type' => 1,
                'sort' => 30, 
                'icon' => 'ShoppingCart',
                'code' => '/admin/user.user/cart',
                'children' => [
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/user.user/del_cart',
                    ],
                ],
            ],
        ]
    ],
    [
        'name' => '笔记',
        'url' => '/dynamic/list/index',
        'type' => 0,
        'icon' => 'Management',
        'sort' => 20,
        'code' => 'dynamic',
        'children' => [
            [
                'name' => '笔记列表',
                'url' => '/dynamic/list/index',
                'type' => 1,
                'sort' => 10, 
                'icon' => 'Notebook',
                'code' => '/admin/dynamic.dynamic/list',
                'children' => [
                    [
                        'name' => '查看评论',
                        'type' => 2,
                        'code' => '/admin/dynamic.dynamic/comment',
                    ],
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/dynamic.dynamic/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/dynamic.dynamic/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/dynamic.dynamic/delete',
                    ],
                ],
            ],
            [
                'name' => '评论列表',
                'url' => '/dynamic/comment/index',
                'type' => 1,
                'sort' => 15, 
                'icon' => 'ChatLineSquare',
                'code' => '/admin/dynamic.comment/list',
                'children' => [
                    [
                        'name' => '审核',
                        'type' => 2,
                        'code' => '/admin/dynamic.comment/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/dynamic.comment/delete',
                    ],
                ],
            ],
            [
                'name' => '圈子列表',
                'url' => '/dynamic/circle/index',
                'type' => 1,
                'sort' => 20, 
                'icon' => 'ChatRound',
                'code' => '/admin/dynamic.circle/list',
                'children' => [
                    [
                        'name' => '查看成员',
                        'type' => 2,
                        'code' => '/admin/dynamic.circle/user',
                    ],
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/dynamic.circle/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/dynamic.circle/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/dynamic.circle/delete',
                    ],
                ],
            ],
            [
                'name' => '知识分类',
                'url' => '/science/category/index',
                'type' => 1,
                'sort' => 10,
                'icon' => 'Notebook',
                'code' => '/admin/science.category/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/science.category/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/science.category/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/science.category/delete',
                    ],
                ],
            ],
            [
                'name' => '知识投诉',
                'url' => '/science/report/index',
                'type' => 1,
                'sort' => 10,
                'icon' => 'Notebook',
                'code' => '/admin/science.report/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/science.report/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/science.report/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/science.report/delete',
                    ],
                ],
            ],
            [
                'name' => '知识列表',
                'url' => '/science/list/index',
                'type' => 1,
                'sort' => 10,
                'icon' => 'Notebook',
                'code' => '/admin/science.science/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/science.science/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/science.science/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/science.science/delete',
                    ],
                ],
            ],
            [
                'name' => '创作领域分类',
                'url' => '/science/cate/index',
                'type' => 1,
                'sort' => 10,
                'icon' => 'Notebook',
                'code' => '/admin/science.cate/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/science.cate/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/science.cate/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/science.cate/delete',
                    ],
                ],
            ],
            [
                'name' => '认证管理',
                'url' => '/science/authentication/index',
                'type' => 1,
                'sort' => 11,
                'icon' => 'Lock',
                'code' => '/admin/science.authentication/list',
                'children' => [
                    [
                        'name' => '查看',
                        'type' => 2,
                        'code' => '/admin/science.authentication/detail',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/science.authentication/edit',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/science.authentication/delete',
                    ],
                ],
            ]
        ]
    ],
    [
        'name' => '商城',
        'url' => '/shop/order/index',
        'type' => 0,
        'icon' => 'Shop',
        'code' => 'shop',
        'sort' => 30,
        'children' => [
            [
                'name' => '订单列表',
                'url' => '/shop/order/index',
                'type' => 1,
                'sort' => 10,
                'icon' => 'Tickets',
                'code' => '/admin/shop.order/list',
                'children' => [
                    [
                        'name' => '发货',
                        'type' => 2,
                        'code' => '/admin/shop.order/delivery',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/shop.order/update',
                    ],
                    [
                        'name' => '售后',
                        'type' => 2,
                        'code' => '/admin/shop.order/refund',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/shop.order/delete',
                    ],
                    [
                        'name' => '退款',
                        'type' => 2,
                        'code' => '/admin/shop.order/refpay',
                    ],
                ],
            ],
            [
                'name' => '商品列表',
                'url' => '/shop/goods/index',
                'type' => 1,
                'sort' => 20,
                'icon' => 'Handbag',
                'code' => '/admin/shop.goods/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/shop.goods/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/shop.goods/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/shop.goods/delete',
                    ],
                ],
            ],
            [
                'name' => '轮播广告',
                'url' => '/shop/banner/index',
                'type' => 1,
                'sort' => 30,
                'icon' => 'Files',
                'code' => '/admin/shop.banner/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/shop.banner/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/shop.banner/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/shop.banner/delete',
                    ],
                ],
            ],
            [
                'name' => '物流公司',
                'url' => '/system/express/index',
                'type' => 1,
                'sort' => 39,
                'icon' => 'Van',
                'code' => '/admin/system.express/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/system.express/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/system.express/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/system.express/delete',
                    ],
                ],
            ],
            [
                'name' => '退货地址',
                'url' => '/shop/refund/index',
                'type' => 1,
                'sort' => 40,
                'icon' => 'MapLocation',
                'code' => '/admin/shop.order/refund_adds',
                'children' => [],
            ],
        ]
    ],
    [
        'name' => '设置',
        'url' => '/settings/app/index',
        'type' => 0,
        'icon' => 'Tools',
        'sort' => 999,
        'code' => 'settings',
        'children' => [
            [
                'name' => 'APP配置',
                'url' => '/settings/app/index',
                'type' => 1,
                'icon' => 'Iphone',
                'sort' => 10, 
                'code' => '/admin/settings.app/app',
                'children' => [],
            ],
            [
                'name' => '通知管理',
                'url' => '/settings/notice/index',
                'type' => 1,
                'icon' => 'Bell',
                'sort' => 20, 
                'code' => '/admin/settings.notice/list',
                'children' => [
                    [
                        'name' => '推送通知',
                        'type' => 2,
                        'code' => '/admin/settings.notice/create',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/settings.notice/delete',
                    ],
                ],
            ],
            [
                'name' => '条款管理',
                'url' => '/settings/clause/index',
                'type' => 1,
                'sort' => 30, 
                'icon' => 'Document',
                'code' => '/admin/settings.clause/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/settings.clause/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/settings.clause/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/settings.clause/delete',
                    ],
                ],
            ],
            [
                'name' => '管理员账号',
                'url' => '/admin/auth/user',
                'type' => 1,
                'sort' => 40, 
                'icon' => 'User',
                'code' => '/admin/auth.admin/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/auth.admin/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/auth.admin/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/auth.admin/delete',
                    ],
                ],
            ],
            [
                'name' => '管理员角色',
                'url' => '/admin/auth/role',
                'type' => 1,
                'sort' => 41, 
                'icon' => 'Coordinate',
                'code' => '/admin/auth.role/list',
                'children' => [
                    [
                        'name' => '添加',
                        'type' => 2,
                        'code' => '/admin/auth.role/create',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/auth.role/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/auth.role/delete',
                    ],
                ],
            ],
            [
                'name' => '素材中心',
                'url' => '/attachment/index',
                'type' => 1,
                'sort' => 60, 
                'icon' => 'FolderOpened',
                'code' => '/admin/file/list',
                'children' => [
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/file/delete',
                    ],
                ],
            ],
            [
                'name' => '操作日志',
                'url' => '/admin/operlog/index',
                'type' => 1,
                'sort' => 70, 
                'icon' => 'Tickets',
                'code' => '/admin/auth.operlog/list',
                'children' => [
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => 'admin/auth.operlog/delete',
                    ],
                ]
            ],
            [
                'name' => '意见反馈',
                'url' => '/science/feedback/index',
                'type' => 1,
                'sort' => 10,
                'icon' => 'Notebook',
                'code' => '/admin/science.feedback/list',
                'children' => [
                    [
                        'name' => '查看',
                        'type' => 2,
                        'code' => '/admin/science.feedback/detail',
                    ],
                    [
                        'name' => '处理',
                        'type' => 2,
                        'code' => '/admin/science.feedback/process',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/science.feedback/delete',
                    ],
                ],
            ],
            [
                'name' => '项目设置',
                'url' => '/science/project/index',
                'type' => 1,
                'sort' => 10,
                'icon' => 'Notebook',
                'code' => '/admin/science.project/list',
                'children' => [
                    [
                        'name' => '查看',
                        'type' => 2,
                        'code' => '/admin/science.project/detail',
                    ],
                    [
                        'name' => '编辑',
                        'type' => 2,
                        'code' => '/admin/science.project/update',
                    ],
                    [
                        'name' => '删除',
                        'type' => 2,
                        'code' => '/admin/science.project/delete',
                    ],
                ],
            ]
//            [
//                'name' => '插件中心',
//                'url' => '/system/plugin/index',
//                'type' => 1,
//                'sort' => 80,
//                'icon' => 'SoldOut',
//                'code' => '/admin/auth.operlog/list',
//                'children' => [],
//            ],
        ]
    ],
];
